<template>
  <div id="app">

    <!-- router-link组件用于跳转 它有一个to属性,必须和路由规则中的path一样 -->
    <van-button type="danger">危险按钮</van-button>
      <router-link to="/">首页</router-link>
      <router-link to="/mine">我的音乐</router-link>

      <!-- router-view是一个坑,用于展示路由规则匹配到的组件 -->
    <router-view/>
  </div>
</template>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
.router-link-active {
  color: rgb(43, 52, 184);
  font-weight: bold;
}
.router-link-exact-active{
  color: red;
  font-weight: bold;
}
</style>
